/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.iddaa.core.domain;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;

/**
 *
 * @author aziz
 */
public class Match {

    private String _id;
    private Team homeTeam;
    private Team awayTeam;
    private Date matchDate;
    private Collection<Event> events = new ArrayList<Event>();
    @Enumerated(EnumType.STRING)
    private String status;
    private Person refere;

    public String getId() {
        return _id;
    }

    public Team getAwayTeam() {
        return awayTeam;
    }

    public Collection<Event> getEvents() {
        return events;
    }

    public Team getHomeTeam() {
        return homeTeam;
    }

    public Date getMatchDate() {
        return matchDate;
    }

    public Person getRefere() {
        return refere;
    }

    public String getStatus() {
        return status;
    }

    public void setId(String _id) {
        this._id = _id;
    }

    public void setAwayTeam(Team awayTeam) {
        this.awayTeam = awayTeam;
    }

    public void setEvents(Collection<Event> events) {
        this.events = events;
    }

    public void setHomeTeam(Team homeTeam) {
        this.homeTeam = homeTeam;
    }

    public void setMatchDate(Date matchDate) {
        this.matchDate = matchDate;
    }

    public void setRefere(Person refere) {
        this.refere = refere;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
